package com.设计模式.外观模式;

/**
 * @author: LCG
 * 作者: LCG
 * 日期: 2021/3/2  10:50
 * 描述:
 */
public class FacadeCalss implements StartAndDown{

    private CPU cpu=new CPU();
    private  Disk disk=new Disk();

    @Override
    public void start() {
        cpu.start();
        disk.start();
    }

    @Override
    public void shutDown() {
        cpu.shutDown();
        disk.shutDown();
    }

}
